package com.ruoyi.price.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.price.domain.TbProject;
import com.ruoyi.price.domain.dto.TbProjectDTO;

import java.util.List;

/**
 * 工程信息Service接口
 * 
 * @author ruoyi
 * @date 2022-09-04
 */
public interface ITbProjectService extends IService<TbProject>
{
    /**
     * 列表条件查询
     * @param tbProject
     * @return
     */
    List<TbProject> listByCondition(TbProject tbProject, SysUser user);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    boolean deleteByIds(String ids);

    /**
     * 根据ID查询工程信息
     * @param id
     * @return
     */
    TbProject getProjectById(Long id);

    /**
     * 根据ID查询工程信息
     * @param id
     * @return
     */
    TbProject getNewProjectById(Long id);

    int saveProject(TbProject tbProject);

    int saveNewProject(TbProjectDTO tbProject);

    int updateProject(TbProject tbProject);

    int updateNewProject(TbProject tbProject);

    String cal(TbProject tbProject);
}
